// C++ source file
// Copyright (c) 2019, Shanghai
// All rights reserved.
//
// @Filename: stack1test.cpp
// @Version：V1.0

#include <iostream>
#include <string>
#include <cstdlib>
#include "stack2.hpp"

int main()
{
    try{
       Stack<std::string> stringStack;

       stringStack.push("hello template");
       std::cout << stringStack.top() << std::endl;
       

       stringStack.pop();
       //stringStack.pop();
    }
    catch (std::exception const& ex) {
        std::cerr << "Exception: " << ex.what() << std::endl;
    }
    return 0;
}

